var express = require('express');
var router = express.Router();
var core = require('core');
/* GET home page. */
router.get('/', function(req, res, next) {
    core.db.schema.User.update({
        openid: "adsa"
    },{openid: "adsa",
    name : "dsadsa",
    nikename: "dsadsa"}, {upsert: true}, function(err, doc){
        console.log(err, doc);
    });
    res.render('index', { title: 'Express' });
});

module.exports = router;
